﻿/**
*   @Copyright 2007 Vesatile Informatique
*
*   Version: 1.00
*   Creation Date:01.04.2007
*   Change Date: 23.02.2009
*   Creators Name: Anourak Bouavong
*   Last Edited By: Kalyan Bag
*   Description:[javascript Event binding]
*/

//#region
/// <summary>
/// Bind event to object
/// Cross-browser implementation of element.addEventListener()
/// </summary>
function listen(evnt, elem, func) {
    if (elem.addEventListener)  // W3C DOM
        elem.addEventListener(evnt, func, false);
    else if (elem.attachEvent) { // IE DOM
        var r = elem.attachEvent("on" + evnt, func);
        return r;
    }
}
//#endregion

